//
//  InstanceFactory.h
//  YLNetworkingFrameworks
//
//  Created by Topsun on 16/6/2.
//  Copyright © 2016年 tcl. All rights reserved.
//

#import "InstanceFactory.h"
#import "AFNHttp.h"

@implementation InstanceFactory


// 获取用来处理http协议的类对象
+ (id<HttpInterface>) getHttpInterface
{
    HttpInterface asiHttp = [[AFNHttp alloc] init];
    return asiHttp;
}

// 获取用来异步处理http协议的类对象
+ (id<HttpAsynInterface>) getHttpAsynInterface
{
    HttpAsynInterface asiHttp = [[AFNHttp alloc] init];
    return asiHttp;
}

@end
